package homework.work8;

public class Main {
    public static void main(String[] args) {
        //长方形
        Rectangle rectangle = new Rectangle(8,6);
        int area = rectangle.area();
        int perimeter = rectangle.perimeter();
        System.out.println(area+"  "+perimeter);

        //正方形
        Square  square = new Square(5);
        int area1 = square.area();
        int perimeter1 = square.perimeter();
        System.out.println(area1+"  "+perimeter1);

    }
}
